#ifndef READ_BUFFER_H
#define READ_BUFFER_H
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>

// 输入流
typedef struct _InputBuffer
{
    char *buffer;
    size_t buffer_length;
    int32_t input_length;
} InputBuffer;


InputBuffer *new_input_buffer();

void read_input(InputBuffer *input_buffer);

void close_input_buffer(InputBuffer *input_buffer);


#endif //READ_BUFFER_H